<template>
    <div class="app">
        <div class="content">
            <!-- 左侧
            <div class="left_content">
                <div class="left-bottom-header">
                    <div class="left-bottom-imgs"><img src="../../assets/img/house.png" alt=""></div>
                    <p>首页</p>
                </div>
                <div class="left-bottom-header">
                    <div class="left-bottom-imgs"><img src="../../assets/img/house.png" alt=""></div>
                    <p>重大任务</p>
                </div>
                <div class="content-header" v-for="(item, index) in rightdata" :key="index">
                    <div v-if="!item.img" class="content-imgs"></div>
                    <div v-else class="content-imgs"><img src="../../assets/img/house.png" alt=""></div>
                    <span class="content-header-p">{{item.title}}</span>
                </div>
            </div> -->
            <div class="left">
                <div class="left-top">
                    <p class="title">数字乡村风采展示</p>
                    <!-- 选择 -->
                    <div class="tabs">
                        <a-tabs default-active-key="1" @change="callback" type="card" >
                            <a-tab-pane key="1" tab="社区人文">
                                <div class="imgs">
                                <img src="../../assets/imgs/pc1143-720.png" alt="">
                                </div>
                            </a-tab-pane>
                            <a-tab-pane key="2" tab="社区活动" force-render>
                                <div class="imgs">
                                <img src="../../assets/imgs/pc1143-720.png" alt="">
                                </div>
                            </a-tab-pane>
                            <a-tab-pane key="3" tab="节日庆典">
                                <div class="imgs">
                                <img src="../../assets/imgs/pc1143-720.png" alt="">
                                </div>
                            </a-tab-pane>
                            <a-tab-pane key="4" tab="临海风采">
                                <div class="imgs">
                                <img src="../../assets/imgs/pc1143-720.png" alt="">
                                </div>
                            </a-tab-pane>
                            <a-tab-pane key="5" tab="人文历史">
                                <div class="imgs">
                                <img src="../../assets/imgs/pc1143-720.png" alt="">
                                </div>
                            </a-tab-pane>
                        </a-tabs>                    
                    </div>
                </div>
                <div class="left-bottom">
                    <div class="left-bottom-header">
                        <div class="left-bottom-imgs"><img src="../../assets/img/house.png" alt=""></div>
                        <p>社区公告</p>
                    </div>
                    <div class="left-bottom-title" v-for="(item,index) in title" :key="index">
                        <p>{{item.titel}}</p>
                        <span>{{item.tiem}}</span>
                    </div>
                </div>
            </div>
            <div class="right">
                <Right></Right>
            </div>
        </div>
    </div>
</template>
<script>
import Right from '../../components/right/index.vue'
export default {
    components:{
        Right
    },
  data() {
    return {
        list:[
            { title:'幼有所育' },
            { title:'学有所教' },
            { title:'劳有所得' },
            { title:'住有所居' },
            { title:'文有所化' },
            { title:'体有所健' },
            { title:'游有所乐' },
            { title:'病有所医' },
            { title:'弱有所扶' },
            { title:'行有所畅' },
            { title:'事有所便' }
        ],
        title:[
            { titel:'好消息，临海庆中秋活动即将开始', tiem:'2021-9-11'},
            { titel:'临海大洋阳光康养院备份', tiem:'2021-9-11'},
        ],
        rightdata:[
            { title:'社会空间', img:'../../assets/img/house.png'},
            { title:'未来社区'},
            { title:'数字乡村'},
            { title:'多跨场景应用', img:'../../assets/img/house.png'},
            { title:'智慧养老'},
            { title:'心灵驿站'},
            { title:'云上夕阳空'},
            { title:'重点项目', img:'../../assets/img/house.png'},
        ]
    };
  },
  methods: {
    callback(key) {
      console.log(key);
    },
  },
}
</script>
<style lang="less" scoped>
.content{
    padding-bottom: 10px;
    display: flex;
    // background-color: #D3E3FB;
    .content-header{
        margin-left: 30px;
        height:45px;
        padding-top: 22px;
        display: flex;
        .content-imgs{
            width: 25px;
            height: 25px;
            margin-right: 10px;
            img{
                width: 100%;
                height: 100%;
            }
        }
        .content-header-p{
            line-height: 40px;
            font-size: 12px;
        }       
    }
}
.left_content{
    background-color: #fff;
    width: 200px;
    height: 850px;
    margin-right: 24px;
            .left-bottom-header{
            height:45px;
            font-size: 20px;
            padding-top: 22px;
            font-weight: bold;
            display: flex;
            .left-bottom-imgs{
                width: 30px;
                height: 30px;
                margin-right: 10px;
                img{
                    width: 100%;
                    height: 100%;
                }
            }
            p{  
                font-size: 20px;
            }       
        }
}
.left{
    width: 1340px;
    height: 850px;
    // background-color: #fff;
    border-radius: 2px;
    border: 1px solid #EBEBEB;
    .left-top{
        width: 1340px;
        height: 540px;
        background: #FFFFFF;
        border-radius: 2px;
        // border: 1px solid #EBEBEB;
        margin-bottom: 24px;    
        .title{
            font-size: 20px;
            padding-top: 23px;
            margin-left: 24px;
            margin-bottom: 16px;
            color: #333333;
            font-weight: bold;
        }
        .tabs{
            margin-left: 12px;
            .imgs{
                margin-left: 12px;
                width: 604px;
                height: 379px;
                img{
                    width: 100%;
                    height: 100%;
                }
            }
            :deep(.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab) {
                color: #999999;
                border: 1px solid #fff;
                font-size: 16px;
            }
            :deep(.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active) {
                color: #3183FF;
                font-size: 16px;
            }
        }
    }
    .left-bottom{
        width: 1340px;
        height: 285px;
        background-color: #FFFFFF;
        border-radius: 2px;
        .left-bottom-header{
            height:45px;
            font-size: 20px;
            padding-top: 26px;
            margin-left: 24px;
            // margin-bottom: 16px;
            // color: #333333;
            font-weight: bold;
            display: flex;
            .left-bottom-imgs{
                width: 30px;
                height: 30px;
                margin-right: 10px;
                img{
                    width: 100%;
                    height: 100%;
                }
            }
            p{
                font-size: 20px;
            }       
        }
        .left-bottom-title{
            margin-left: 24px;
            width: 100%;
            height: 50px;
            margin-top: 24px;
            margin-bottom: 24px;
            p{
                font-size: 16px;
                font-weight: bold;
                color: #444;
                margin: 0;padding: 0;
            }
            span{
                font-size: 14px;
                font-weight: 400;
                color: #999999;
            }
        }
    }

}
.right{
    width: 200px;
    height: 850px;
    background: #FFFFFF;
    border-radius: 2px;
    // border: 1px solid #EBEBEB;
    margin-left: 24px;
    .header{
        font-size: 20px;
        margin-top: 24px;
        margin-left: 24px;
        // margin-bottom: 16px;
        color: #333333;
        font-weight: bold;
        // display: flex;
        // .imgs{
        //     width: 30px;
        //     height: 30px;
        //     margin-right: 10px;
        //     img{
        //         width: 100%;
        //         height: 100%;
        //     }
        // }        
    }
    .right-content{
        margin-left: 24px;
        // height: 50px;
        // margin-bottom: 45px;
        .right-title{
            font-weight: bold;
            height: 22px;
            font-size: 16px;
            color: #444444;
            // margin-bottom: 8px;
        }
        .right-text{
            // height: 20px;
            margin-top: 24px;
            padding-right: 10px;
            box-sizing: border-box;
            font-size: 14px;
            color: #454333;
            margin-bottom: 0;
        }
    }
}
</style>